<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>爱乘车</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="关键词" />
<meta name="description" content="描述" />
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
	function checkNull()
{	
	var num=0;
	$("input[type$='text']").each(function(){  
          if($(this).val()=="")  
          {
			  num++;
          }  
     });
	if(num>0)
     {
		 $("#info1").addClass("show");  
		 return false;
     }
     else
     {
		 return true;
     }
	
}

	  </script>
</head>
<body>
<div class="tabwrap">
 <span><a href="/bus/search/getlocation.html">附近车站</a></span>
 <span class="tabon"><a href="#">搜索站点</a></span>
</div>
<form action="{:U('Bus/Search/searchHandle')}" method="post">
<div class="input-wrap">
	<input name="station_name" type="text" class="input-station" placeholder="请输入车次/站点名称" />
	<input type="submit" value="查询" class="input-button" onclick="return checkNull()" />
</div>
<p class="errorinfo" id="info1">请输入车次/站点名称</p>
<div>
	<div class="container">
	<div class="buslist">
	      <ul>
			  <foreach name="searchbus" item="lin">
				  <li>
				  	<a id="a{$key}" href="{:U('./Bus/station/'.$lin['qr_id'])}">
				  		<div class="stops"><h2>{$lin.station_name}</h2></div>
					</a>
				  </li>
			  </foreach>	
        </ul>
	</div>
</div>
</div>
</form>
</body>
</html>